﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SCS.Web.UI.WebControls.Dialogs.Test
{
    public partial class TemplatedDialog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void submitCommand_Click(object sender, EventArgs args)
        {
            var control = Dialog1.FindControl("dialogMessage") as Label;
            control.Text = "Form was saved!";
            control.ForeColor = System.Drawing.Color.Red;
        }
    }
}